package com.wcx.behavior.strategy.demo1;

/**
 * 项目: design-pattern-githupdemo
 * <p>
 * 功能描述:
 *
 * @author: WuChengXing
 * @create: 2021-01-09 10:38
 **/
public class CashSuperRebate extends CashSuper {

    private double moneyRebate = 1d;

    public CashSuperRebate(double moneyRebate) {
        this.moneyRebate = moneyRebate;
    }

    @Override
    public double acceptCash(double money) {
        return money * moneyRebate;
    }
}
